import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.Rectangle;

import javax.swing.*;
import javax.swing.border.TitledBorder;

import java.awt.Component;

public class PendingRequestDetailsRegistrationGUI  extends JFrame
{

	
	private JTextField DetailsTextField = null;
	private JButton backButton = null;
	private JButton apporveButton = null;
	private JButton denyButton = null;
	private JPanel contentPane=null;
	
	public PendingRequestDetailsRegistrationGUI ()
	{ 
		 //Pending Request Details  Regitration panel
		   contentPane=new JPanel();
		   
		   contentPane.setBorder(new TitledBorder(null, "Pending Request Details Regitration", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		   
		   contentPane.setLayout(null);
		   contentPane.setOpaque(true);
		   contentPane.add(getDetailsField());
		   contentPane.add(getApporveButton());
		   contentPane.add(getDenyButton());
		   contentPane.add(geBackButton(),BorderLayout.SOUTH);      
	         
	         //Frame
		        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		        this.setTitle("Pending Request Details Regitration Window");
		        this.setContentPane(contentPane);  
			    this.setLocationRelativeTo(null); //This will center the JFrame in the middle of the screen
		        this.setLocationByPlatform(true);
		        this.setSize(500, 500);
		        this.setVisible( true ); // display frame
	               
	  }
		
	/**
	 * This method initializes Details Text Field	
	 */
	private JTextField getDetailsField() {
		if (DetailsTextField == null) {
			DetailsTextField = new JTextField();
			DetailsTextField.setBounds(new Rectangle(50,50,400, 200));
			DetailsTextField.addFocusListener(new java.awt.event.FocusAdapter() {
				public void focusLost(java.awt.event.FocusEvent e) {
					
				}
			});
		}
		return DetailsTextField;
	}
	
	/**
	 * This method initializes Approve Button	
	 */
	private JButton getApporveButton() {
		if (apporveButton == null) {
			apporveButton = new JButton();
			apporveButton.setBounds(new Rectangle(100, 280, 100, 35));
			apporveButton.setText("Apporve");
			apporveButton.addActionListener(new java.awt.event.ActionListener() 
			{
				public void actionPerformed(java.awt.event.ActionEvent e) 
				{
					
					                
				
				}
			});
		}
		return apporveButton;
	}
	
	/**
	 * This method initializes Deny Button	
	 */
	private JButton getDenyButton() {
		if ( denyButton == null) {
			 denyButton = new JButton();
			 denyButton.setBounds(new Rectangle(300, 280,100, 35));
			 denyButton.setText("Deny");
			 denyButton.addActionListener(new java.awt.event.ActionListener() 
			{
				public void actionPerformed(java.awt.event.ActionEvent e) 
				{
					
					               
				
				}
			});
		}
		return  denyButton;
	}
	
	/**
	 * This method initializes Back Button	
	 */
	private JButton geBackButton() {
		if (backButton == null) {
			backButton = new JButton();
			backButton.setBounds(new Rectangle(170, 380,150, 35));
			backButton.setText("Back to main");
			backButton.addActionListener(new java.awt.event.ActionListener() 
			{
				public void actionPerformed(java.awt.event.ActionEvent e) 
				{
					            
				
				}
			});
		}
		return backButton;
	}
	
}
